
#@layout()
#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
                        编辑/新增
            <small>Edit</small>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header ">
                        <h3 class="box-title"></h3>
                    </div>
                    <form style="margin-left: 20px;margin-right: 20px;" class="form-horizontal form-setting" autocomplete="off"
                          action="/admin/securityinformation/jpress_addon_securityinformation_srd/doSave"
                          method="POST" id="form">

						<div style="text-align: center;">
							<h3>语言 : #(entry.language ??)</h3>
						</div>

						<fieldset>
							<h4 class="title-bar">1. 提交者信息</h4>
							<table class="table r">
								<tr>
									<td>
										<label>(a) 报告单号</label>
									</td>
									<td>
										<input readonly type="text" class="form-control" value="MFDR20200001" maxlength="17" title="不允许输入，系统自动生成" />
									</td>
									<td>
										<label>(b) 故障/失效/缺陷发生日期</label>
									</td>
									<td>
										<input readonly value="#(entry.date_occurrence ??)" id="故障失效缺陷发生日期-1" type="text" class="form-control" maxlength="10" placeholder="(mm/dd/yyyy)" data-toggle="tooltip" data-placement="bottom" title="故障/失效/缺陷发现的日期，格式为年/月/日" />
									</td>
								</tr>
								<tr>
									<td>
										<label>(c) 注册号</label>
									</td>
									<td>
										<input readonly value="#(entry.registration_number ??)" id="注册号-1" type="text" class="form-control" maxlength="5" data-toggle="tooltip" data-placement="bottom" title="飞机的注册号" />
									</td>
									<td>
										<label>(d) 提交者类型</label>
									</td>
									<td>
										<select class="form-control" id="提交者类型-1">
											<option>#(entry.submitted_type ??)</option>
										</select>
									</td>
								</tr>
								<tr>
									<td>
										<label>(e) 飞机型号<span class="red">*</span></label>
									</td>
									<td>
										<input readonly id="飞机型号" type="text" value="#(entry.model)" class="form-control"  maxlength="17" title="飞机型号" />
									</td>
									<td></td>
									<td></td>
								</tr>
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">2. 代码</h4>
							<table class="table r">
								<tr>
									<td>
										<label>(a) 运营人名称</label>
									</td>
									<td>
										<input readonly value="#(entry.name_operator ??)" id="运营人名称-2" type="text" class="form-control" maxlength="4" title="航空器运营人的名称" />
									</td>
									<td>
										<label>(b) 运营人类型</label>
									</td>
									<td>
										<select class="form-control" id="运营人类型-2">
											<option>#(entry.type_operator ??)</option>
										</select>
									</td>
								</tr>
								<tr>
									<td>
										<label>(c) JASC/ATA代码</label>
									</td>
									<td>
										<select id="JASCATA代码-2" class="form-control" data-toggle="tooltip" data-placement="bottom" title="JASC代码/ATA代码">
											<option>#(entry.jasc_ata_code ??)</option>
										</select>
									</td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td>
										<label>(d) 发生阶段</label>
									</td>
									<td>
										<select id="发生阶段-2" class="form-control" data-toggle="tooltip" data-placement="bottom" title="故障/失效/缺陷发生时所处的阶段">
											<option>#(entry.occurrence_stage ??)</option>
										</select>
									</td>
									<td>
										<label>(e) 发现途径</label>
									</td>
									<td>
										<select id="发现途径-2" class="form-control" data-toggle="tooltip" data-placement="bottom" title="用于表示故障/失效/缺陷如何被发现的代码">
											<option>#(entry.discovery_way ??)</option>
										</select>
									</td>
								</tr>
								<tr>
									<td>
										<label>(f) 现象</label>
									</td>
									<td>
										<select id="现象-2" class="form-control" data-toggle="tooltip" data-placement="bottom" title="用于描述和故障/失效/缺陷相关的现象">
											<option>#(entry.phenomenon.split(',',-1)[0])</option>
										</select>
										<br />
										<select class="form-control" id="现象1-2">
											<option>#(entry.phenomenon.split(',',-1)[1])</option>
										</select>
										<br />
										<select class="form-control" id="现象2-2">
											<option>#(entry.phenomenon.split(',',-1)[2])</option>
										</select>
									</td>
									<td>
										<label>(g) 预防措施</label>
									</td>
									<td>
										<select id="预防措施-2" class="form-control" data-toggle="tooltip" data-placement="bottom" title="用于描述预防措施的代码">
											<option>#(entry.preventive_measure.split(',',-1)[0])</option>
										</select>
										<br />
										<select class="form-control" id="预防措施1-2">
											<option>#(entry.preventive_measure.split(',',-1)[1])</option>
										</select>
										<br />
										<select class="form-control" id="预防措施2-2">
											<option>#(entry.preventive_measure.split(',',-1)[2])</option>
										</select>
										<br />
										<select class="form-control" id="预防措施3-2">
											<option>#(entry.preventive_measure.split(',',-1)[3])</option>
										</select>
									</td>
								</tr>
								<tr>
									<td>
										<label>(h) 航班号</label>
									</td>
									<td>
										<input readonly value="#(entry.flight_number ??)" id="航班号-2" type="text" class="form-control" maxlength="10" data-toggle="tooltip" data-placement="bottom" title="故障/失效/缺陷发生的航班号" />
									</td>
									<td>
										(i) 困难的地方
									</td>
									<td>
										<input readonly value="#(entry.difficulty_place ??)" id="difficulty_place" type="text" class="form-control" maxlength="10" data-toggle="tooltip" data-placement="bottom" title="">
									</td>
								</tr>
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">3. 主要设备识别</h4>
							<table class="table">
								<tr>
									<td></td>
									<td><label>制造厂家</label></td>
									<td><label>型号</label></td>
									<td><label>序列号</label></td>
									<td><label>总时间<span class="small">(小时数)</span></label></td>
									<td><label>总循环</label></td>
								</tr>
								#for(data:srddis)
								<tr>
									<td>
										<label>(a) #(data.equipment ??)</label>
									</td>
									<input readonly type="hidden" id = "#(data.equipment ??)-3" value="#(data.equipment ??)">
									<td>
										<input readonly value="#(data.manufacturer ??)" id="#(data.equipment ??)制造厂家-3" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="飞机制造商" />
									</td>
									<td>
										<input readonly value="#(data.model ??)" id="#(data.equipment ??)型号-3" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="飞机型号"/>
									</td>
									<td>
										<input readonly value="#(data.serial_number ??)" id="#(data.equipment ??)序列号-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="飞机序列号"/>
									</td>
									<td>
										<input readonly value="#(data.total_time ??)" id="#(data.equipment ??)总时间-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="飞机总飞行小时数"/>
									</td>
									<td>
										<input readonly value="#(data.total_circulation ??)" id="#(data.equipment ??)总循环-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="飞机总循环数"/>
									</td>
								</tr>
								#end
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">4. 问题描述<span class="small">(注：描述文字限定在1500字。)</span></h4>
							<table class="table">
								<tr>
									<td>
										<textarea id="问题描述-4" type="text" class="form-control" data-toggle="tooltip" data-placement="bottom" title="用于清晰地识别和详细描述故障/失效/缺陷。请提供任何导致该问题发生的重要事实，以及适当的纠正措施。引起问题发生的零件/组件的详细状况应包含在内。">#(entry.problem_description ??)</textarea>
										<br>
										#if(entry.enclosure_url ??)
										<div class="form-group">
											<div class="col-sm-6">
												<a href="#(entry.enclosure_url ??)">下载附件</a>
											</div>
										</div>
										#end

									</td>
								</tr>
								<tr>
									<td class="small">
										您的描述有 <span style="font-weight: 600;">0</span> 个字数。
									</td>
								</tr>
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">5. 引起故障/失效/缺陷的具体零件或结构</h4>
							<table class="table">
								<tr>
									<td>
										<label>(a) 零件名称</label>
									</td>
									<td>
										<label>(b) 生产厂家名称</label>
									</td>
									<td>
										<label>(c) 件号</label>
									</td>
									<td colspan="3">
										<label>(d) 序列号</label>
									</td>
								</tr>
								<tr>
									<td>
										<input readonly value="#(entry.part_name ??)" id="零件名称-5" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="生产厂家定义的零件名称"/>
									</td>
									<td>
										<input readonly value="#(entry.name_manufacturer ??)" id="生产厂家名称-5" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="零件的生产厂家"/>
									</td>
									<td>
										<input readonly value="#(entry.partNumber ??)" id="件号-5" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="生产厂家给定的件号"/>
									</td>
									<td colspan="3">
										<input readonly value="#(entry.serial_number ??)" id="序列号-5" type="text" class="form-control" maxlength="16" data-toggle="tooltip" data-placement="bottom" title="零件生产厂家给定的序列号"/>
									</td>
								</tr>
								<tr>
									<td>
										<label>(e) 零件状况</label>
									</td>
									<td>
										<label>(f) 零件/缺陷位置</label>
									</td>
									<td>
										<label>总时间（小时数） </label>
									</td>
									<td>
										<label>(h) 总循环数</label>
									</td>
									<td colspan="2">
										<label>(i) 自大修/修理/检查总时间（小时数）</label>
									</td>
								</tr>
								<tr valign="top">
									<td>
										<input readonly value="#(entry.parts_status ??)" id="零件状况-5" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="零件的状况；避免使用概况性的词语，例如“不可用的”或者“可修理的”。"/>
									</td>
									<td>
										<select id="零件缺陷位置-5" class="form-control" data-toggle="tooltip" data-placement="bottom" title="缺陷的大概位置。尽可能按照以下文本框的内容进行描述">
											<option>#(entry.defect_location_parts.split(',',-1)[0])</option>
										</select>
										<span><br />或者<br /></span>
										<input readonly value="#(entry.defect_location_parts.split(',',-1)[1] ??)" id="零件缺陷位置或者-5" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="描述飞机/发动机/螺旋桨上零件的特定位置"/>
									</td>
									<td>
										<input readonly value="#(entry.total_time ??)" id="总时间-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="零件的总小时数"/>
									</td>
									<td>
										<input readonly value="#(entry.total_cycle_number ??)" id="总循环数-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="零件的总小时数"/>
									</td>
									<td>
										<input readonly value="#(entry.total_overhaul_time ??)" id="自大修修理检查总时间-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="零件自其最近一次的大修/修理/检查后开始投入使用的总时间"/>
									</td>
									<td>
										<div class="form-check">
											<input disabled #if(entry.type_5=="大修") checked="checked" #end class="form-check-input" type="radio" name="ta" id="ta01" value="大修">
											<label class="form-check-label" for="ta01">
												大修
											</label>
										</div>
										<div class="form-check">
											<input disabled #if(entry.type_5=="修理") checked="checked" #end class="form-check-input" type="radio" name="ta" id="ta02" value="修理">
											<label class="form-check-label" for="ta02">
												修理
											</label>
										</div>
										<div class="form-check">
											<input disabled #if(entry.type_5=="检查") checked="checked" #end class="form-check-input" type="radio" name="ta" id="ta03" value="检查">
											<label class="form-check-label" for="ta03">
												检查
											</label>
										</div>
									</td>
								</tr>
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">6. 包含缺陷件的部件/组件</h4>
							<table class="table">
								<tr>
									<td>
										<label>(a) 部件名称</label>
									</td>
									<td>
										<label>(b) 生产厂家名称</label>
									</td>
									<td>
										<label>(c) 件号</label>
									</td>
									<td>
										<label>(d) 序列号</label>
									</td>
									<td>
										<label>(e) 型号</label>
									</td>
								</tr>
								<tr>
									<td>
										<input readonly value="#(entry.part_name_6 ??)" id="部件名称-6" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="生产厂家定义的部件名称"/>
									</td>
									<td>
										<input readonly value="#(entry.name_manufacturer_6 ??)" id="生产厂家名称-6" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="部件的生产厂家"/>
									</td>
									<td>
										<input readonly value="#(entry.part_number_6 ??)" id="件号-6" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="生产厂家给定的部件件号"/>
									</td>
									<td>
										<input readonly value="#(entry.serial_number_6 ??)" id="序列号-6" type="text" class="form-control" maxlength="16" data-toggle="tooltip" data-placement="bottom" title="部件生产厂家给定的序列号"/>
									</td>
									<td>
										<input readonly value="#(entry.model_6 ??)" id="型号-6" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="部件生产厂家给定的型号"/>
									</td>
								</tr>
								<tr>
									<td>
										<label>(f) 位置</label>
									</td>
									<td>
										<label>(g) 总时间（小时数）</label>
									</td>
									<td>
										<label>(h) 总循环数</label>
									</td>
									<td colspan="2">
										<label>(i) 自大修/修理/检查总时间 (小时数)</label>
									</td>
								</tr>
								<tr>
									<td>
										<input readonly value="#(entry.position_6 ??)" id="位置-6" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="部件/组件的位置"/>
									</td>
									<td>
										<input readonly value="#(entry.total_time_6 ??)" id="总时间-6" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="部件的总小时数"/>
									</td>
									<td>
										<input readonly value="#(entry.total_cycle_number_6 ??)" id="总循环数-6" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="部件的总循环数"/>
									</td>
									<td>
										<input readonly value="#(entry.total_overhaul_repair_inspection_time_6 ??)" id="自大修修理检查总时间-6" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="部件自其最近一次的大修/修理/检查后开始投入使用的总时间"/>
									</td>
									<td>
										<div class="form-check">
											<input disabled #if(entry.type_6=="大修") checked="checked" #end class="form-check-input" type="radio" name="tb" id="tb01" value="大修">
											<label class="form-check-label" for="tb01">
												大修
											</label>
										</div>
										<div class="form-check">
											<input disabled #if(entry.type_6=="修理") checked="checked" #end class="form-check-input" type="radio" name="tb" id="tb02" value="修理">
											<label class="form-check-label" for="tb02">
												修理
											</label>
										</div>
										<div class="form-check">
											<input disabled #if(entry.type_6=="检查") checked="checked" #end class="form-check-input" type="radio" name="tb" id="tb03" value="检查">
											<label class="form-check-label" for="tb03">
												检查
											</label>
										</div>
									</td>
								</tr>
							</table>
						</fieldset>
						<fieldset>
							<h4 class="title-bar">7. 提交者信息</h4>
							<table class="table">
								<tr>
									<td>
										<label>姓名</label>
									</td>
									<td>
										<label>电话</label>
									</td>
									<td>
										<label>电子邮箱</label>
									</td>
								</tr>
								<tr>
									<td>
										<input readonly value="#(entry.name ??)" id="姓名-7" type="text" class="form-control" maxlength="50" data-toggle="tooltip" data-placement="bottom" title="提交信息者的个人姓名"/>
									</td>
									<td>
										<input readonly value="#(entry.phone ??)" id="电话-7" type="text" class="form-control" maxlength="30" data-toggle="tooltip" data-placement="bottom" title="提交者电话号码，用于民航局核实提交资料"/>
									</td>
									<td>
										<input readonly value="#(entry.email ??)" id="电子邮箱-7" type="text" class="form-control" maxlength="50" data-toggle="tooltip" data-placement="bottom" title="提交者电子邮件，用于民航局核实提交资料"/>
									</td>
								</tr>
							</table>
						</fieldset>

						#--<div class="row text-center mb-4 mt-4" >
							<div class="col-6">
								<button style="margin-bottom: 20px;" type="button" class="btn btn-primary" onclick="submitdata();">提交</button>
							</div>
						</div>--#

                    </form>
                </div>
            </div>
        </div>

    </section>

</div>

#end
